let input = document.querySelectorAll('.second input')
let fish = document.querySelector('#donelist')
let tode = document.querySelector('#todolist')
let del = document.querySelectorAll('a')
// console.log(input)
input.forEach(item=>item.onclick = function(){
    // console.log(this.parentNode)
    const type = this.checked
    if(type){
        fish.appendChild(this.parentNode)
    }else{
        tode.appendChild(this.parentNode)
    }
})
del.forEach(item=>item.onclick = function(){
    this.parentNode.remove()
})

